<div class="title">
  <div class='content'>
    编辑-预订信息
  </div>
  <div class='tools'>
    <%= link_to '返回',
          order_url(@order),
          :remote => true,
          :method => :get
     %>
  </div>
</div>
<%= form_for @order,
     :url => order_url(@order),
     :remote => true,
     :method => :put do |f|
 %> 
<div class='info'>
  <table>
    <tr>
      <th>
        订单号：
      </th>
      <td>
        <%= f.text_field :order_no %>
      </td>
    </tr>
    <tr>
      <th>
        预定日期：
      </th>
      <td>
        <%= f.date_select :ordered_on %>
      </td>
    </tr>
    <tr>
      <th>
        交货日期：
      </th>
      <td>
        <%= f.date_select :deliveried_on %>
      </td>
    </tr>
    <tr>
      <th>
        总价：
      </th>
      <td>
        <%= f.text_field :sale_price %>
      </td>
    </tr>
    <tr>
      <th>
        预付款：
      </th>
      <td>
        <%= f.text_field :order_price %>
      </td>
    </tr>
    <tr>
      <th>特殊说明：</th>
      <td>
        <%= f.text_area :remark, :rows => 6 %>
      </td>
    </tr>
    <tr>
      <td  colspan="2" class='b'>
        <%= f.submit '保存', :class => :bb %>
        <%= link_to '返回',
              order_url(@order),
              :remote => true,
              :method => :get,              
              :class => :bb
         %> 
      </td>
    </tr>
  </table>    
</div>
<% end %>